package main.SQL.objects;

import java.sql.ResultSet;
import java.sql.SQLException;

public class SQLDocumentCategory {

    private int catgId;
    private String catgName;
    private String dbName;

    public SQLDocumentCategory() {

    }

    public SQLDocumentCategory(int catgId, String catgName, String dbName) {
        this.catgId = catgId;
        this.catgName = catgName;
        this.dbName = dbName;
    }

    public SQLDocumentCategory(ResultSet rs) throws SQLException {
        this.catgId = rs.getInt("catg_id");
        this.catgName = rs.getString("catg_name");
        this.dbName = rs.getString("db_name");
    }


}
